<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <!-- Google Chrome Frame也可以让IE用上Chrome的引擎: -->
    <meta name="renderer" content="webkit">
    <!--国产浏览器高速模式-->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="搜索关键字，以半角英文逗号隔开"/>
    <title>典卡姆OA管理系统</title>

    <!-- 公共样式 开始 -->
    <link rel="shortcut icon" type="image/x-icon" href="../../../res/images/favicon.ico">
    <link rel="stylesheet" type="text/css" href="../../../res/css/base.css">
    <link rel="stylesheet" type="text/css" href="../../../res/fonts/iconfont.css">
    <script type="text/javascript" src="../../../res/framework/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../../../res/js/base.js"></script>
    <link rel="stylesheet" type="text/css" href="../../../res/layui/css/layui.css">
    <!--[if lt IE 9]>
    <script src="../../../res/framework/html5shiv.min.js"></script>
    <script src="../../../res/framework/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="../../../res/layui/layui.js"></script>
    <script src="../../../res/framework/cframe.js"></script><!-- 仅供所有子页面使用 -->
    <!-- 公共样式 结束 -->
    <script type="text/javascript" src="../../../res/js/Tools.js"></script>
    <link rel="stylesheet" type="text/css" href="../../../res/css/frameStyle.css">
    <script type="text/javascript" src="../../../res/framework/frame.js"></script>
    <!--<script type="text/javascript" src="../../../res/js/user.js"></script>-->
    <script src="../../../res/js/login_common.js" charset="utf-8"></script>
</head>

<script>
    $(function () {
        var url = getRootPath() + "OaPersonnelAction/getUser";
        $.ajax({
            //请求方式
            type: "GET",
            //请求的媒体类型
            contentType: "application/json;charset=UTF-8",
            //请求地址
            url: url,
            //数据，json字符串
            async: true,
            //请求成功
            success: function (res) {
                $("#yly").html(res.data.personnelName);
            }
        });
    });
</script>

<body>
<!-- 左侧菜单 - 开始 -->
<div class="frameMenu">
    <div class="logo">
        <img src="../../../res/images/dkmLogo.png"/>
        <div class="logoText">
            <a href="../index.html"><h1>典卡姆OA管理系统</h1></a>
        </div>
    </div>
    <div class="menu">
        <div class="hoverBox"></div>
        <ul>
            <li>
                <a class="menuFA" href="javascript:void(0)">
                    <i class="layui-icon layui-icon-home left"
                       onmouseenter="getLeftTips(this, '组织架构')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>组织架构</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('organization/company/company.html',this, 'page10001')">公司</a></dt>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('organization/department/department.html',this, 'page10002')">部门</a>
                    </dt>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('organization/organization/organization.html',this, 'page10003')">岗位</a>
                    </dt>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('organization/personnel/personnel.html',this, 'page10004')">人员</a>
                    </dt>
                </dl>
            </li>
            <li>
                <a class="menuFA" href="javascript:void(0)">
                    <i class="layui-icon layui-icon-group left"
                       onmouseenter="getLeftTips(this, '流程管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>流程管理</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('flow/flow.html',this, 'page10011')">流程管理</a>
                    </dt>
                </dl>
            </li>
            <!--<li>
                <a class="menuFA" href="javascript:void(0)">
                    <i class="layui-icon layui-icon-group left"
                       onmouseenter="getLeftTips(this, '流程进度管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>流程进度管理</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('client/clientType.html',this, 'page10021')">人事流程进度</a>
                    </dt>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('user/user.html',this, 'page10022')">行政流程进度</a></dt>
                </dl>
            </li>-->
            <li>
                <a class="menuFA" href="javascript:void(0)">
                    <!--onclick="menuCAClick('client/type.html',this, 'page10028')"-->
                    <i class="layui-icon layui-icon-star left"
                       onmouseenter="getLeftTips(this, '权限管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>权限管理</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('jurisdiction/role/role.html',this, 'page10031')">角色管理</a>
                    </dt>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('jurisdiction/jurisdiction.html',this, 'page10032')">菜单权限</a>
                    </dt>
                    <!--<dt id="users"><a href="javascript:void(0)"
                                      onclick="menuCAClick('user/user.html',this, 'page10032')">功能权限</a></dt>-->
                    <!--<dt><a href="javascript:void(0)"
                           onclick="menuCAClick('tgls/management/management.html',this, 'page10026')">人事管理人员</a></dt>-->
                </dl>
            </li>
            <li id="inform">
                <a class="menuFA" href="javascript:void(0)">
                    <!--onclick="menuCAClick('sector/sector.html',this, 'page10033')"-->
                    <i class="layui-icon layui-icon-notice left"
                       onmouseenter="getLeftTips(this, '通知管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>通知管理</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('news/news.html',this, 'page10041')">新闻管理</a>
                    </dt>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('newsType/newsType.html',this, 'page10042')">新闻类型管理</a></dt>
                </dl>
            </li>
            <li id="log">
                <a class="menuFA" href="javascript:void(0)">
                    <i class="layui-icon layui-icon-log left"
                       onmouseenter="getLeftTips(this, '日志')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>日志</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt>
                        <a href="javascript:void(0)"
                           onclick="menuCAClick('oaLog/log.html?logType=1',this, 'page10051')">系统日志</a>
                    </dt>
                    <dt>
                        <a href="javascript:void(0)"
                           onclick="menuCAClick('oaLog/log.html?logType=0',this, 'page10052')">错误信息</a>
                    </dt>
                </dl>
            </li>
            <li id="dataDictionary">
                <a class="menuFA" href="javascript:void(0)">
                    <i class="layui-icon layui-icon-template-1 left"
                       onmouseenter="getLeftTips(this, '数据字典')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>数据字典</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt>
                        <a href="javascript:void(0)"
                           onclick="menuCAClick('oaDataDictionary/oaDataDictionary.html',this, 'page10061')">数据字典</a>
                    </dt>
                </dl>
            </li>
            <li>
                <a class="menuFA" href="javascript:void(0)">
                    <!--onclick="menuCAClick('client/type.html',this, 'page10028')"-->
                    <i class="layui-icon layui-icon-star left"
                       onmouseenter="getLeftTips(this, '办公用品类型')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>办公用品类型管理</font>
                    <i class="iconfont icon-dajiantouyou right"></i>
                </a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('officeSuppliesType/officeSuppliesType.html',this, 'page10031')">用品类型管理</a>
                    </dt>
                </dl>
            </li>
        </ul>
    </div>
</div>
<!-- 左侧菜单 - 结束 -->

<div class="main">
    <!-- 头部栏 - 开始 -->
    <div class="frameTop">
        <div class="shrinkBut">
            <div class="hoverBox"></div>
            <ul>
                <li><a href="javascript:void(0)" onclick="menuShrink(this)" onmouseenter="getTips(this, '收缩菜单')"
                       onmouseleave="layer.closeAll('tips')"><i class="iconfont icon-caidan-shousuo"></i></a></li>
                <li><a href="javascript:void(0)" onclick="frameRefresh()" onmouseenter="getTips(this, '刷新')"
                       onmouseleave="layer.closeAll('tips')"><i class="iconfont icon-htmal5icon23"></i></a></li>
            </ul>
        </div>
        <div class="topMenu">
            <div class="hoverBox"></div>
            <ul>
                <li><a href="javascript:void(0)" id="fullScreenBut" onclick="fullScreen('fullScreenBut')"
                       onmouseenter="getTips(this, '全屏')" onmouseleave="layer.closeAll('tips')"><i
                        class="iconfont icon-full-screen"></i></a></li>
                <li>
                    <a href="javascript:void(0)"><font id="yly">管理员</font><i class="iconfont icon-up-copy"></i></a>
                    <dl>
                        <dt><a href="javascript:void(0)"
                               onclick="menuCAClick('../front/person/personelcenter.html',this, 'pageUserInfo'	)">基本资料</a>
                        </dt>
                        <dt><a href="javascript:void(0)"
                               onclick="menuCAClick('../front/person/updatePassWord.html',this, 'pageModifyPassword')">修改密码</a>
                        </dt>
                    </dl>
                </li>
                <li><a href="javascript:removeUser()" onmouseenter="getTips(this, '退出系统')" onmouseleave="layer.closeAll('tips')"><i
                        class="iconfont icon-084tuichu"></i></a></li>
            </ul>
        </div>
    </div>
    <!-- 头部栏 - 结束 -->

    <!-- 核心区域 - 开始 -->
    <div class="frameMain">
        <div class="title" id="frameMainTitle" class="layui-tab" lay-filter="demo" lay-allowclose="true">
            <i class="iconfont icon-shuangzuojiantou- leftbut" onclick="pageShow('l')"></i>
            <div class="mainPageBox">
                <div class="mainPage">
							<span class="active" onclick="pageSwitch(this)">
			    				<div class="hoverBox"></div>
								<i class="iconfont icon-shouye"></i>
							</span>
                </div>
            </div>
            <i class="iconfont icon-shuangyoujiantou- rightbut" onclick="pageShow('r')"></i>
            <i class="iconfont icon-iconfontarrows1 rightbut pageAllBut">
                <dl>
                    <dt><a href="javascript:void(0)" onclick="nowpageClose()">关闭当前标签页</a></dt>
                    <dt><a href="javascript:void(0)" onclick="otherpageClose()">关闭其它标签页</a></dt>
                    <dt><a href="javascript:void(0)" onclick="allpageClose()">关闭全部标签页</a></dt>
                </dl>
            </i>
            <div class="layui-tab-content">
            </div>
        </div>
        <div class="con">
            <div class="mainPageCon">
                <iframe class="mainIframe" src="index.html" scrolling="yes"></iframe>
            </div>
        </div>
        <!-- 核心区域 - 结束 -->
    </div>
</div>
<script type="text/javascript">

    layui.use(['element', 'form'], function () {
        element = layui.element;
        element.init();
        //新增或切换选项卡
        $(".tab").click(function () {
            var tabId = $(this).attr('id');
            var falg = true;
            var li = $("#top-tab li");
            $(li).each(function (i, element) {
                if ($(this).attr("lay-id") == tabId) {
                    falg = false;
                }
            });
            if (falg == false) {
                element.tabChange('demo', tabId);//切换到指定的Tab项
            } else {
                element.tabAdd('demo', {
                    title: $(this).text()
                    ,
                    content: '<iframe name="iframe" width="100%" style="min-height: 640px;" scrolling="yes" frameborder="0" noresize="noresize" src="' + $(this).attr("title") + '"></iframe>' //支持传入html
                    ,
                    id: $(this).attr('id')
                });
                element.tabChange('demo', tabId);//切换到指定的Tab项
            }

        });
        //关闭全部选项
        $("#close").dblclick(function () {
            var li = $("#top-tab li");
            $(li).each(function (i, ele) {
                var layId = $(this).attr("lay-id");
                element.tabDelete('demo', layId);
            });
        });
    });
    $(function () {
        /*$("#yly").html(window.loginObj.manager.userName);
        if (window.loginObj.manager.userType == 2) {
            $("#user").hide();
            $("#inform").hide();
            $("#log").hide();
        }*/
        let url=getRootPath()+"OaPersonnelAction/getButton";
        $.ajax({
            url: url,
            type:'GET',
            async: false,
            success:res=>{
                let msg=1;
                $.each(res.data,function (index,item) {
                    if(item.jurisdictionCode ==="SUPER" ||item.jurisdictionCode === "BACK"){
                        $("#back").show();
                        msg=0;
                        return;
                    }
                });
                if(msg===1){
                    loginObj.topWin.location.href = getRootPath() + "pages/dkmoa/login.html";
                }
            },
            error:res=>{
                loginObj.topWin.location.href = getRootPath() + "pages/dkmoa/login.html";
            }
        });

    });
    function removeUser(){
        getAjaxById(getRootPath()+"OaPersonnelAction/logout");
        location.href="../login.html";
    }
</script>

</body>
</html>
